Computes the bin width for a discrete frequency spectrum based upon the data sample rate.
The frequency bin width is computed as follows.
where m is computed via compute_transform_length.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | fs |
The rate at which the signal was sampled. The units of this value will be the units of the output. |
||
| integer(kind=int32), | intent(in) | :: | n |
The signal length (length of the signal put forth to the Fourier transform). |
The frequency bin width.